Skip to content

Instantly share code, notes, and snippets.

@dabulseco
dabulseco / microgpt.py
Created February 26, 2026 11:54 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active February 26, 2026 11:52
QEMU with VirtIO GPU Vulkan Support

QEMU with VirtIO GPU Vulkan Support

With its latest reales qemu added the Venus patches so that virtio-gpu now support venus encapsulation for vulkan. This is one more piece to the puzzle towards full Vulkan support.

An outdated blog post on clollabora described in 2021 how to enable 3D acceleration of Vulkan applications in QEMU through the Venus experimental Vulkan driver for VirtIO-GPU with a local development environment. Following up on the outdated write up, this is how its done today.

Definitions

Let's start with the brief description of the projects mentioned in the post & extend them:

@rz6agx
rz6agx / Xray-proxy-scheme.md
Last active February 26, 2026 11:52
Многоуровневая прокси-схема с использованием Xray

Многоуровневая прокси-схема с использованием Xray

Идея предполагает создание цепочки прокси-серверов, где один из них находится в вашей стране, а другой - за рубежом. Это вполне реализуемо, и подобная схема действительно может скрыть использование зарубежного прокси, так как для наблюдателя ваш трафик будет выглядеть как соединение с локальным сервером.

Когда речь идет о соединении между дата-центрами, особенно по магистральным каналам, скорость передачи данных обычно значительно выше, чем у обычного интернет-канала конечного пользователя. Поэтому в таком случае использование каскада прокси-серверов может оказаться даже быстрее, чем прямое подключение к удаленному прокси. Если основной целью является просто обход географических ограничений или увеличение скорости, и при этом передача данных не содержит ничего критичного, то шифрование может быть излишним. В этом случае можно обойтись стандартными настройками SOCKS-протокола без дополнительных мер защиты. Для соединения между прокси-серверами будем использ

@karpathy
karpathy / microgpt.py
Last active February 26, 2026 11:55
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@Olanetsoft
Olanetsoft / workflow.md
Created February 25, 2026 17:15
Workflow Orchestration - CLAUDE

Workflow Orchestration

1. Plan Node Default

  • Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions).
  • If something goes sideways, STOP and re-plan immediately—don't keep pushing.
  • Use plan mode for verification steps, not just building.
  • Write detailed specs upfront to reduce ambiguity.

2. Subagent Strategy

@Vitka999
Vitka999 / client.cpp
Created February 26, 2026 10:39
C++(сокеты)
#define _WIN32_WINNT 0x0601
#include <winsock2.h>
#include <ws2tcpip.h>
#include <iostream>
#include <string>
@mberman84
mberman84 / prompts.md
Last active February 26, 2026 11:45
Prompts

OpenClaw: Extracted Prompts (Generalized)

22 copy/paste-ready prompts for building your own AI agent system. Each prompt builds a functional system or implements a proven best practice you can hand to an AI coding assistant.

Replace placeholders like <your-workspace>, <your-messaging-platform>, and <your-model> with your own values.


1. Personal CRM

---
name: plan-exit-review
version: 2.0.0
description: |
Review a plan thoroughly before implementation. Challenges scope, reviews
architecture/code quality/tests/performance, and walks through issues
interactively with opinionated recommendations.
allowed-tools:
- Read
- Grep
@mberman84
mberman84 / all_files.md
Created February 24, 2026 21:09
Matt's Markdown Files

OpenClaw: System Prompt File Templates

Generalized versions of all root .md files used by OpenClaw. These files are loaded into the agent's system prompt on every request (except MEMORY.md which is conditional).

Copy these as starting points and customize for your own setup. Replace <placeholders> with your values.


AGENTS.md